package com.dream.libxrec.player;

import android.media.Image;
import android.media.MediaFormat;

public interface DecodeCallback {

        public final int TYPE_VIDEO = 0;
        public final int TYPE_AUDIO = 1;

        public void initVideo(MediaFormat format);
        public void initAudio(MediaFormat format);
        public void onVideoDecode(Image image, long pts);
        public void onAudioDecode(byte[] pcm, int size,long pts);
        public void onFinish(int type);
}